import java.util.Random;


/**
 * 
 * @author Group 202
 * 
 * Exercise 4.3 a
 *
 */
public class Zufallszahlen {

	public static void main(String[] args) 
	{
		boolean[] stickerArray = new boolean[128];
		for (int i = 0; i < stickerArray.length; i++) 
		{
			stickerArray[i] = false;
		}
		
		int counter = 0, counterTry = 0;
		Random random = new Random(0);
		
		while(counter < 128)
		{
			int randomNumber = random.nextInt(128);
			if (!stickerArray[randomNumber])
			{
				stickerArray[randomNumber] = true;
				counter++;
			}
			counterTry++;
		}
		System.out.println(counterTry + "  ;  " + counter);
	}
}
